package com.one.consumer.reserve.ui.activity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.one.common.config.RouterPath;
import com.one.common.view.base.IListView;
import com.one.common.view.widget.MyTitleBar;
import com.one.consumer.BaseActivityC;
import com.one.consumer.BaseListActivityC;
import com.one.consumer.reserve.model.ReserveApi;
import com.one.consumer.reserve.model.item.CustomProjectItem;
import com.one.consumer.reserve.presenter.CustomProjectPresenter;
import com.one.consumer.reserve.ui.binder.CustomProjectBinder;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/10/24 下午9:55
 * description ：定制加配 项目列表
 **/
@Route(path = RouterPath.CUSTOM_PROJECT)
public class CustomProjectListActivity extends BaseListActivityC<CustomProjectPresenter> implements IListView {
    @Override
    protected void initPresenter() {
        mPresenter = new CustomProjectPresenter(this,this);
    }

    @Override
    public void registerDate() {
        register(CustomProjectItem.class, new CustomProjectBinder());
    }

    @Override
    public void loadData() {
        mPresenter.getProjectList();
    }

    @Override
    public void initData() {
        super.initData();
        loadData();
    }

    @Override
    protected void initTitle() {
        super.initTitle();
        getMyTitleBar().setMode(MyTitleBar.Mode.BACK_TITLE)
                .setTitleText("项目名称");
    }
}
